package org.agile4j.rpc.client.bean;

/**
 * 封装 RPC 响应
 * Created by Administrator on 2016/8/12.
 */
public class RpcResponse {
    private String requestId ;
    private Exception exception ;
    private Object result ;

    public boolean hasException() {
        return exception != null ;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}
